<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MTCDElggPlugin: /home/nicola/public_html/elgg/mod/mtcd/start.php Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MTCDElggPlugin
   &#160;<span id="projectnumber">0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('start_8php.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">/home/nicola/public_html/elgg/mod/mtcd/start.php</div>  </div>
</div>
<div class="contents">
<a href="start_8php.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 set_time_limit(0);
<a name="l00004"></a>00004 
<a name="l00009"></a><a class="code" href="start_8php.html#a38a02770385e327c214db25b2576e942">00009</a> <span class="keyword">function</span> <a class="code" href="start_8php.html#a38a02770385e327c214db25b2576e942" title="Write a row in the log file.">write_log</a>($text) {
<a name="l00010"></a>00010         $var=fopen(datalist_get(<span class="stringliteral">&quot;dataroot&quot;</span>) . <span class="stringliteral">&quot;mtcd.log&quot;</span>, <span class="stringliteral">&quot;a+&quot;</span>);
<a name="l00011"></a>00011         fwrite($var, <span class="stringliteral">&quot;[&quot;</span> . date(<span class="stringliteral">&quot;Y/m/d H:i:s&quot;</span>,time()) . <span class="stringliteral">&quot;] &quot;</span>);
<a name="l00012"></a>00012         fwrite($var, $text);
<a name="l00013"></a>00013         fwrite($var, <span class="stringliteral">&quot;\r\n&quot;</span>);
<a name="l00014"></a>00014         fclose($var);
<a name="l00015"></a>00015 }
<a name="l00016"></a>00016 
<a name="l00022"></a><a class="code" href="start_8php.html#aac1033f7c06f63040b83896b27fe9953">00022</a> <span class="keyword">function</span> <a class="code" href="start_8php.html#aac1033f7c06f63040b83896b27fe9953" title="Get a list of synonyms of a word.">get_synonyms</a>($word) {
<a name="l00023"></a>00023 
<a name="l00024"></a>00024         <a class="code" href="settings_8php.html#ada8a7130088351710bb02ed622d6bf65" title="Represents this plugin.">$plugin</a> = elgg_get_plugin_from_id(<span class="stringliteral">&quot;mtcd&quot;</span>);
<a name="l00025"></a>00025         $path_wn = <a class="code" href="settings_8php.html#ada8a7130088351710bb02ed622d6bf65" title="Represents this plugin.">$plugin</a>-&gt;getAllSettings();
<a name="l00026"></a>00026 
<a name="l00027"></a>00027         exec($path_wn[<span class="stringliteral">&quot;path_wn&quot;</span>] . <span class="stringliteral">&quot; &quot;</span> . $word . <span class="stringliteral">&quot; -synsn&quot;</span>,$names);
<a name="l00028"></a>00028         exec($path_wn[<span class="stringliteral">&quot;path_wn&quot;</span>] . <span class="stringliteral">&quot; &quot;</span> . $word . <span class="stringliteral">&quot; -synsv&quot;</span>,$verbs);
<a name="l00029"></a>00029 
<a name="l00030"></a>00030         $result = array_merge($names,$verbs);
<a name="l00031"></a>00031 
<a name="l00032"></a>00032         $synonyms = array(); <span class="comment">// list of synonyms</span>
<a name="l00033"></a>00033         $interesting_zone = <span class="keyword">false</span>;
<a name="l00034"></a>00034 
<a name="l00035"></a>00035         <span class="keywordflow">foreach</span>($result as $row) {
<a name="l00036"></a>00036                 <span class="keywordflow">if</span>($interesting_zone) {
<a name="l00037"></a>00037                         $synonyms = array_merge($synonyms,explode(<span class="stringliteral">&quot;, &quot;</span>, $row));
<a name="l00038"></a>00038                         $interesting_zone = <span class="keyword">false</span>;
<a name="l00039"></a>00039                 }
<a name="l00040"></a>00040 
<a name="l00041"></a>00041                 <span class="keywordflow">if</span>(substr($row,0,5) == <span class="stringliteral">&quot;Sense&quot;</span>) {
<a name="l00042"></a>00042                         $interesting_zone = <span class="keyword">true</span>;
<a name="l00043"></a>00043                 }
<a name="l00044"></a>00044         }
<a name="l00045"></a>00045 
<a name="l00046"></a>00046         <span class="keywordflow">return</span> array_unique($synonyms);
<a name="l00047"></a>00047 }
<a name="l00048"></a>00048 
<a name="l00054"></a><a class="code" href="start_8php.html#a45cc67920b1dbed4fc1c415c2eed2b7c">00054</a> <span class="keyword">function</span> <a class="code" href="start_8php.html#a45cc67920b1dbed4fc1c415c2eed2b7c" title="Get a list of hypernyms of a word.">get_hypernyms</a>($word) {
<a name="l00055"></a>00055 
<a name="l00056"></a>00056         <a class="code" href="settings_8php.html#ada8a7130088351710bb02ed622d6bf65" title="Represents this plugin.">$plugin</a> = elgg_get_plugin_from_id(<span class="stringliteral">&quot;mtcd&quot;</span>);
<a name="l00057"></a>00057         $path_wn = <a class="code" href="settings_8php.html#ada8a7130088351710bb02ed622d6bf65" title="Represents this plugin.">$plugin</a>-&gt;getAllSettings();
<a name="l00058"></a>00058 
<a name="l00059"></a>00059         exec($path_wn[<span class="stringliteral">&quot;path_wn&quot;</span>] . <span class="stringliteral">&quot; &quot;</span> . $word . <span class="stringliteral">&quot; -hypen&quot;</span>,$names);
<a name="l00060"></a>00060         exec($path_wn[<span class="stringliteral">&quot;path_wn&quot;</span>] . <span class="stringliteral">&quot; &quot;</span> . $word . <span class="stringliteral">&quot; -hypev&quot;</span>,$verbs);
<a name="l00061"></a>00061 
<a name="l00062"></a>00062         $result = array_merge($names,$verbs);
<a name="l00063"></a>00063 
<a name="l00064"></a>00064         $hypernyms = array(); <span class="comment">// list of hypernyms</span>
<a name="l00065"></a>00065         $interesting_zone = <span class="keyword">false</span>;
<a name="l00066"></a>00066 
<a name="l00067"></a>00067         <span class="keywordflow">foreach</span>($result as $row) {
<a name="l00068"></a>00068                 $normalizeRow = trim($row);
<a name="l00069"></a>00069                 <span class="keywordflow">if</span>(substr($normalizeRow,0,3) == <span class="stringliteral">&quot;=&gt; &quot;</span>) {
<a name="l00070"></a>00070                         $normalizeRow = substr($normalizeRow,3);
<a name="l00071"></a>00071                         $interesting_zone = <span class="keyword">true</span>;
<a name="l00072"></a>00072                 }
<a name="l00073"></a>00073 
<a name="l00074"></a>00074                 <span class="keywordflow">if</span>(substr($normalizeRow,0,14) == <span class="stringliteral">&quot;INSTANCE OF=&gt; &quot;</span>) {
<a name="l00075"></a>00075                         $normalizeRow = substr($normalizeRow,14);
<a name="l00076"></a>00076                         $interesting_zone = <span class="keyword">true</span>;
<a name="l00077"></a>00077                 }
<a name="l00078"></a>00078 
<a name="l00079"></a>00079                 <span class="keywordflow">if</span>($interesting_zone) {
<a name="l00080"></a>00080                         $hypernyms = array_merge($hypernyms,explode(<span class="stringliteral">&quot;, &quot;</span>, $normalizeRow));
<a name="l00081"></a>00081                         $interesting_zone = <span class="keyword">false</span>;
<a name="l00082"></a>00082                 }
<a name="l00083"></a>00083         }
<a name="l00084"></a>00084 
<a name="l00085"></a>00085         <span class="keywordflow">return</span> array_unique($hypernyms);
<a name="l00086"></a>00086 }
<a name="l00087"></a>00087 
<a name="l00094"></a><a class="code" href="start_8php.html#a8ecd5468592524b985e40212f90033be">00094</a> <span class="keyword">function</span> <a class="code" href="start_8php.html#a8ecd5468592524b985e40212f90033be" title="Create a dictionary of words associated with other words which are related in some way...">get_dictionary</a>($metaname, $type) {
<a name="l00095"></a>00095 
<a name="l00096"></a>00096         $count_metadata = elgg_get_metadata(array(<span class="stringliteral">&quot;count&quot;</span>=&gt; TRUE, <span class="stringliteral">&quot;metadata_names&quot;</span> =&gt; $metaname, <span class="stringliteral">&quot;limit&quot;</span> =&gt; 0));
<a name="l00097"></a>00097 
<a name="l00098"></a>00098         $metadata = elgg_get_tags(array(<span class="stringliteral">&quot;tag_names&quot;</span>=&gt; $metaname, <span class="stringliteral">&quot;limit&quot;</span>=&gt; $count_metadata ) );
<a name="l00099"></a>00099         $dictionary = array();
<a name="l00100"></a>00100 
<a name="l00101"></a>00101         <span class="keywordflow">foreach</span> ($metadata as $meta) {
<a name="l00102"></a>00102                 $lowerMeta = strtolower($meta-&gt;tag);
<a name="l00103"></a>00103                 $dictionary[$lowerMeta] = array();
<a name="l00104"></a>00104                 $relatedWords = array();
<a name="l00105"></a>00105 
<a name="l00106"></a>00106                 <span class="keywordflow">switch</span> ($type) {
<a name="l00107"></a>00107                         <span class="keywordflow">case</span> <span class="stringliteral">&quot;hypernyms&quot;</span>:
<a name="l00108"></a>00108                                 $relatedWords = <a class="code" href="start_8php.html#a45cc67920b1dbed4fc1c415c2eed2b7c" title="Get a list of hypernyms of a word.">get_hypernyms</a>($meta-&gt;tag);
<a name="l00109"></a>00109                                 <span class="keywordflow">break</span>;
<a name="l00110"></a>00110                                         
<a name="l00111"></a>00111                         <span class="keywordflow">default</span>:
<a name="l00112"></a>00112                                 $relatedWords = <a class="code" href="start_8php.html#aac1033f7c06f63040b83896b27fe9953" title="Get a list of synonyms of a word.">get_synonyms</a>($meta-&gt;tag);
<a name="l00113"></a>00113                         <span class="keywordflow">break</span>;
<a name="l00114"></a>00114                 }
<a name="l00115"></a>00115                 <span class="keywordflow">foreach</span> ($relatedWords as $relatedWord) {
<a name="l00116"></a>00116                         <span class="keywordflow">foreach</span> ($metadata as $otherMeta) {
<a name="l00117"></a>00117                                 <span class="keywordflow">if</span>($otherMeta-&gt;tag == $meta-&gt;tag) {
<a name="l00118"></a>00118                                         <span class="keywordflow">continue</span>;
<a name="l00119"></a>00119                                 }
<a name="l00120"></a>00120                                 <span class="keywordflow">if</span>(strtolower($relatedWord) == strtolower($otherMeta-&gt;tag)) {
<a name="l00121"></a>00121                                         array_push($dictionary[$lowerMeta],strtolower($otherMeta-&gt;tag));
<a name="l00122"></a>00122                                 }
<a name="l00123"></a>00123                         }
<a name="l00124"></a>00124                 }
<a name="l00125"></a>00125 
<a name="l00126"></a>00126                 <span class="keywordflow">if</span> (empty($dictionary[$lowerMeta])) {
<a name="l00127"></a>00127                         unset($dictionary[$lowerMeta]);
<a name="l00128"></a>00128                 }
<a name="l00129"></a>00129         }
<a name="l00130"></a>00130 
<a name="l00131"></a>00131         <span class="keywordflow">foreach</span> (array_keys($dictionary) as $key) {
<a name="l00132"></a>00132                 <a class="code" href="start_8php.html#a38a02770385e327c214db25b2576e942" title="Write a row in the log file.">write_log</a>(<span class="stringliteral">&quot;Correspondence between &quot;</span> . $key. <span class="stringliteral">&quot; and &quot;</span> . implode(<span class="stringliteral">&quot;, &quot;</span>, $dictionary[$key]) .<span class="stringliteral">&quot; found&quot;</span>);
<a name="l00133"></a>00133         }
<a name="l00134"></a>00134 
<a name="l00135"></a>00135         <span class="keywordflow">return</span> $dictionary;
<a name="l00136"></a>00136 }
<a name="l00137"></a>00137 
<a name="l00145"></a><a class="code" href="start_8php.html#a93b8cbed2051023102fba978a0b21cb4">00145</a> <span class="keyword">function</span> <a class="code" href="start_8php.html#a93b8cbed2051023102fba978a0b21cb4" title="Get and filter data from Elgg database to produce a dataset for the clustering procedure.">generate_dataset</a>($synonyms, $hypernyms, $type, $subtypes = ELGG_ENTITIES_NO_VALUE) {
<a name="l00146"></a>00146 
<a name="l00147"></a>00147         $i=1;                                   <span class="comment">// placeholder</span>
<a name="l00148"></a>00148         $attributes = array();  <span class="comment">// list of descriptors</span>
<a name="l00149"></a>00149         $data = array();                <span class="comment">// entity-descriptor matrix</span>
<a name="l00150"></a>00150 
<a name="l00151"></a>00151         <span class="comment">// get all entities of a given type</span>
<a name="l00152"></a>00152         <span class="keywordflow">foreach</span> (elgg_get_entities(array(<span class="stringliteral">&quot;type&quot;</span>=&gt;$type, <span class="stringliteral">&quot;subtypes&quot;</span>=&gt;$subtypes, <span class="stringliteral">&quot;limit&quot;</span>=&gt;0)) as $entity) {
<a name="l00153"></a>00153                 $entityDescriptors = array();
<a name="l00154"></a>00154 
<a name="l00155"></a>00155                 <span class="comment">// get all entity descriptors</span>
<a name="l00156"></a>00156                 <span class="keywordflow">foreach</span> ($entity-&gt;getMetaData(($type == <span class="stringliteral">&quot;object&quot;</span>) ? <span class="stringliteral">&quot;tags&quot;</span> : <span class="stringliteral">&quot;interests&quot;</span>) as $descriptor) {
<a name="l00157"></a>00157                         $lowerDescriptor = strtolower($descriptor);
<a name="l00158"></a>00158                         $entityDescriptors = array_merge($entityDescriptors,array($lowerDescriptor));
<a name="l00159"></a>00159 
<a name="l00160"></a>00160                         <span class="keywordflow">if</span>(array_key_exists($lowerDescriptor,$synonyms)) {
<a name="l00161"></a>00161                                 $entityDescriptors = array_merge($entityDescriptors,$synonyms[$lowerDescriptor]);
<a name="l00162"></a>00162                         }
<a name="l00163"></a>00163 
<a name="l00164"></a>00164                         <span class="keywordflow">if</span>(array_key_exists($lowerDescriptor,$hypernyms)) {
<a name="l00165"></a>00165                                 $entityDescriptors = array_merge($entityDescriptors,$hypernyms[$lowerDescriptor]);
<a name="l00166"></a>00166                         }
<a name="l00167"></a>00167                 }
<a name="l00168"></a>00168                 $entityDescriptors = array_unique($entityDescriptors);
<a name="l00169"></a>00169 
<a name="l00170"></a>00170                 <span class="comment">// save new descriptor</span>
<a name="l00171"></a>00171                 <span class="keywordflow">foreach</span> (array_diff($entityDescriptors,array_keys($attributes)) as $descriptor) {
<a name="l00172"></a>00172                         $attributes[$descriptor] = $i;
<a name="l00173"></a>00173                         $i++;
<a name="l00174"></a>00174                 }
<a name="l00175"></a>00175 
<a name="l00176"></a>00176                 <span class="comment">// save descriptor placeholders</span>
<a name="l00177"></a>00177                 $data[$entity-&gt;guid] = array();
<a name="l00178"></a>00178                 <span class="keywordflow">foreach</span> ($entityDescriptors as $descriptor) {
<a name="l00179"></a>00179                         array_push($data[$entity-&gt;guid],$attributes[$descriptor]);
<a name="l00180"></a>00180                 }
<a name="l00181"></a>00181                 sort($data[$entity-&gt;guid],SORT_NUMERIC);
<a name="l00182"></a>00182         }
<a name="l00183"></a>00183 
<a name="l00184"></a>00184         <a class="code" href="start_8php.html#a93c2285ae79637e22148d06aa2309ff5" title="Formatting a dataset and write it in an ARFF file.">write_arff</a>(($type == <span class="stringliteral">&quot;object&quot;</span>) ? $subtypes[0] : $type, $attributes, $data);
<a name="l00185"></a>00185 }
<a name="l00186"></a>00186 
<a name="l00193"></a><a class="code" href="start_8php.html#a93c2285ae79637e22148d06aa2309ff5">00193</a> <span class="keyword">function</span> <a class="code" href="start_8php.html#a93c2285ae79637e22148d06aa2309ff5" title="Formatting a dataset and write it in an ARFF file.">write_arff</a>($relation, $attributes, $data) {
<a name="l00194"></a>00194 
<a name="l00195"></a>00195         $var=fopen(datalist_get(<span class="stringliteral">&quot;dataroot&quot;</span>) . $relation . <span class="stringliteral">&quot;.arff&quot;</span>,<span class="stringliteral">&quot;w+&quot;</span>);
<a name="l00196"></a>00196         fwrite($var, <span class="stringliteral">&quot;@relation $relation \r\n&quot;</span>);
<a name="l00197"></a>00197 
<a name="l00198"></a>00198         fwrite($var, <span class="stringliteral">&quot;@attribute entity { &quot;</span> . implode(<span class="stringliteral">&quot;,&quot;</span>, array_keys($data)) . <span class="stringliteral">&quot; }\r\n&quot;</span>);
<a name="l00199"></a>00199 
<a name="l00200"></a>00200         <span class="keywordflow">foreach</span> (array_keys($attributes) as $tag) {
<a name="l00201"></a>00201                 fwrite($var, <span class="stringliteral">&quot;@attribute $tag { 0, 1 }\r\n&quot;</span>);
<a name="l00202"></a>00202         }
<a name="l00203"></a>00203         fwrite($var, <span class="stringliteral">&quot;@data\r\n&quot;</span>);
<a name="l00204"></a>00204 
<a name="l00205"></a>00205         <span class="keywordflow">foreach</span> (array_keys($data) as $guid) {
<a name="l00206"></a>00206                 <span class="keywordflow">if</span>(empty($data[$guid])){
<a name="l00207"></a>00207                         fwrite($var, <span class="stringliteral">&quot;{ 0 $guid }\r\n&quot;</span>);
<a name="l00208"></a>00208                 }
<a name="l00209"></a>00209                 <span class="keywordflow">else</span> {
<a name="l00210"></a>00210                         fwrite($var, <span class="stringliteral">&quot;{ 0 $guid, &quot;</span> . implode(<span class="stringliteral">&quot; 1, &quot;</span>, $data[$guid]) . <span class="stringliteral">&quot; 1 }\r\n&quot;</span>);
<a name="l00211"></a>00211                 }
<a name="l00212"></a>00212         }
<a name="l00213"></a>00213 
<a name="l00214"></a>00214         fclose($var);
<a name="l00215"></a>00215 }
<a name="l00216"></a>00216 
<a name="l00223"></a><a class="code" href="start_8php.html#a0ca6c057aa7e778ab38cb43a3d303e88">00223</a> <span class="keyword">function</span> <a class="code" href="start_8php.html#a0ca6c057aa7e778ab38cb43a3d303e88" title="Use simple k-means to obtain omogeneous clusters of entities.">get_clusters</a>($relation,$number_of_cluster)
<a name="l00224"></a>00224 {
<a name="l00225"></a>00225         <a class="code" href="settings_8php.html#ada8a7130088351710bb02ed622d6bf65" title="Represents this plugin.">$plugin</a> = elgg_get_plugin_from_id(<span class="stringliteral">&quot;mtcd&quot;</span>);
<a name="l00226"></a>00226         <a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a> = <a class="code" href="settings_8php.html#ada8a7130088351710bb02ed622d6bf65" title="Represents this plugin.">$plugin</a>-&gt;getAllSettings();
<a name="l00227"></a>00227 
<a name="l00228"></a>00228         exec(<span class="stringliteral">&quot;java -cp &quot;</span> . <a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a>[<span class="stringliteral">&quot;path_weka&quot;</span>] . <span class="stringliteral">&quot; weka.clusterers.SimpleKMeans -t &quot;</span>. datalist_get(<span class="stringliteral">&quot;dataroot&quot;</span>) . $relation . <span class="stringliteral">&quot;.arff -c first -N $number_of_cluster -A \&quot;weka.core.EuclideanDistance -R first-last\&quot; -I 500 -S 10&quot;</span>, $result);
<a name="l00229"></a>00229 
<a name="l00230"></a>00230         $interesting_zone = <span class="keyword">false</span>;
<a name="l00231"></a>00231         $clusters = array();
<a name="l00232"></a>00232 
<a name="l00233"></a>00233         <span class="keywordflow">for</span>($i=0; $i&lt;count($result); $i++)
<a name="l00234"></a>00234         {
<a name="l00235"></a>00235                 <span class="keywordflow">if</span>($interesting_zone) {
<a name="l00236"></a>00236                         <span class="keywordflow">if</span>($result[$i] == <span class="stringliteral">&quot;&quot;</span>) {
<a name="l00237"></a>00237                                 $interesting_zone = <span class="keyword">false</span>;
<a name="l00238"></a>00238                         }
<a name="l00239"></a>00239                         <span class="keywordflow">else</span> {
<a name="l00240"></a>00240                                 $class_entity = explode(<span class="stringliteral">&quot; |&quot;</span>,$result[$i]);
<a name="l00241"></a>00241                                 $classes = explode(<span class="stringliteral">&quot; &quot;</span>,trim($class_entity[0]));
<a name="l00242"></a>00242                                 $class = array_search(<span class="stringliteral">&quot;1&quot;</span>, $classes);
<a name="l00243"></a>00243                                 <span class="keywordflow">if</span>(isset($clusters[$class])) {
<a name="l00244"></a>00244                                         array_push($clusters[$class],$class_entity[1]);
<a name="l00245"></a>00245                                 }
<a name="l00246"></a>00246                                 <span class="keywordflow">else</span> {
<a name="l00247"></a>00247                                         $clusters[$class] = array($class_entity[1]);
<a name="l00248"></a>00248                                 }
<a name="l00249"></a>00249                         }
<a name="l00250"></a>00250                 }
<a name="l00251"></a>00251 
<a name="l00252"></a>00252                 <span class="keywordflow">if</span> ($result[$i] == <span class="stringliteral">&quot;Classes to Clusters:&quot;</span>) {
<a name="l00253"></a>00253                         $interesting_zone = <span class="keyword">true</span>;
<a name="l00254"></a>00254                         $i += 2;
<a name="l00255"></a>00255                 }
<a name="l00256"></a>00256         }
<a name="l00257"></a>00257 
<a name="l00258"></a>00258         <span class="keywordflow">foreach</span> ($clusters as $cluster) {
<a name="l00259"></a>00259                 <a class="code" href="start_8php.html#a38a02770385e327c214db25b2576e942" title="Write a row in the log file.">write_log</a>(<span class="stringliteral">&quot;A cluster with &quot;</span> . count($cluster) . <span class="stringliteral">&quot; element found for $relation&quot;</span>);
<a name="l00260"></a>00260         }
<a name="l00261"></a>00261 
<a name="l00262"></a>00262         <span class="keywordflow">return</span> $clusters;
<a name="l00263"></a>00263 }
<a name="l00264"></a>00264 
<a name="l00269"></a><a class="code" href="start_8php.html#a5067bb4596a4ba71e3b8928ad397da4f">00269</a> <span class="keyword">function</span> <a class="code" href="start_8php.html#a5067bb4596a4ba71e3b8928ad397da4f" title="Delete all clusters of a given type.">delete_clusters</a>($type) {
<a name="l00270"></a>00270         <span class="keywordflow">foreach</span> (elgg_get_entities(array(<span class="stringliteral">&quot;type&quot;</span>=&gt;<span class="stringliteral">&quot;object&quot;</span>, <span class="stringliteral">&quot;subtype&quot;</span>=&gt;<span class="stringliteral">&quot;cluster&quot;</span>, <span class="stringliteral">&quot;limit&quot;</span>=&gt;0)) as $entity) {
<a name="l00271"></a>00271                 <span class="keywordflow">if</span>(substr($entity-&gt;title, strlen($type) * -1) == $type) {
<a name="l00272"></a>00272                         $entity-&gt;delete();
<a name="l00273"></a>00273                 }
<a name="l00274"></a>00274         }
<a name="l00275"></a>00275 }
<a name="l00276"></a>00276 
<a name="l00282"></a><a class="code" href="start_8php.html#a1020a828d0972a4160fc08b3e4449c21">00282</a> <span class="keyword">function</span> <a class="code" href="start_8php.html#a1020a828d0972a4160fc08b3e4449c21" title="Save all clusters and create the relationships between the clusters and the contained entities...">save_clusters</a>($clusters,$type)
<a name="l00283"></a>00283 {
<a name="l00284"></a>00284         <a class="code" href="start_8php.html#a5067bb4596a4ba71e3b8928ad397da4f" title="Delete all clusters of a given type.">delete_clusters</a>($type);
<a name="l00285"></a>00285         $i = 1;
<a name="l00286"></a>00286 
<a name="l00287"></a>00287         <span class="keywordflow">foreach</span> ($clusters as $cluster) {
<a name="l00288"></a>00288 
<a name="l00289"></a>00289                 <span class="comment">//create cluster</span>
<a name="l00290"></a>00290                 $elgg_obj = <span class="keyword">new</span> ElggObject();
<a name="l00291"></a>00291                 $elgg_obj-&gt;title = <span class="stringliteral">&quot;cluster&quot;</span> . ($i)  .<span class="stringliteral">&quot;_&quot;</span> . $type;
<a name="l00292"></a>00292                 $elgg_obj-&gt;subtype = <span class="stringliteral">&quot;cluster&quot;</span>;
<a name="l00293"></a>00293                 $elgg_obj-&gt;access_id = 2; <span class="comment">//setting the object to become public</span>
<a name="l00294"></a>00294                 $elgg_obj-&gt;save();
<a name="l00295"></a>00295 
<a name="l00296"></a>00296                 <span class="comment">//create relatioship</span>
<a name="l00297"></a>00297                 <span class="keywordflow">foreach</span> ($cluster as $relationship) {
<a name="l00298"></a>00298                         $elgg_obj-&gt;addRelationship($relationship,$type . <span class="stringliteral">&quot;_element&quot;</span>);
<a name="l00299"></a>00299                 }
<a name="l00300"></a>00300                 $i++;
<a name="l00301"></a>00301         }
<a name="l00302"></a>00302 }
<a name="l00303"></a>00303 
<a name="l00309"></a><a class="code" href="start_8php.html#af0a9e4c0b261bdb62061e92d560c6527">00309</a> <span class="keyword">function</span> <a class="code" href="start_8php.html#af0a9e4c0b261bdb62061e92d560c6527" title="Iteratively performs the clustering process by changing the K value until the clusters cardinality is...">init_clustering</a>($type, $subtype = ELGG_ENTITIES_NO_VALUE) {
<a name="l00310"></a>00310         <span class="keywordflow">if</span>($type == <span class="keywordtype">object</span>) {
<a name="l00311"></a>00311                 $relation = $subtype;
<a name="l00312"></a>00312         }
<a name="l00313"></a>00313         <span class="keywordflow">else</span> {
<a name="l00314"></a>00314                 $relation = $type;
<a name="l00315"></a>00315         }
<a name="l00316"></a>00316         
<a name="l00317"></a>00317         <a class="code" href="start_8php.html#a38a02770385e327c214db25b2576e942" title="Write a row in the log file.">write_log</a>(<span class="stringliteral">&quot;Start clustering for $relation&quot;</span>);
<a name="l00318"></a>00318         
<a name="l00319"></a>00319         $clusterCardinality = 25;
<a name="l00320"></a>00320         $count = elgg_get_entities(array(<span class="stringliteral">&quot;count&quot;</span>=&gt; TRUE, <span class="stringliteral">&quot;type&quot;</span> =&gt; $type, <span class="stringliteral">&quot;subtype&quot;</span> =&gt; $subtype, <span class="stringliteral">&quot;limit&quot;</span> =&gt; 0));
<a name="l00321"></a>00321         $k = round($count/$clusterCardinality);
<a name="l00322"></a>00322         <span class="keywordflow">if</span>($k&lt;2){
<a name="l00323"></a>00323                 $k = 2;
<a name="l00324"></a>00324         }
<a name="l00325"></a>00325         
<a name="l00326"></a>00326         $invalidCluster = <span class="keyword">true</span>;
<a name="l00327"></a>00327         <span class="keywordflow">while</span> ($invalidCluster) {
<a name="l00328"></a>00328                 $invalidCluster = <span class="keyword">false</span>;
<a name="l00329"></a>00329                 $clusters = <a class="code" href="start_8php.html#a0ca6c057aa7e778ab38cb43a3d303e88" title="Use simple k-means to obtain omogeneous clusters of entities.">get_clusters</a>($relation, $k);
<a name="l00330"></a>00330                 <span class="keywordflow">foreach</span> ($clusters as $cluster) {
<a name="l00331"></a>00331                         <span class="keywordflow">if</span>(count($cluster) &gt; $clusterCardinality) {
<a name="l00332"></a>00332                                 $invalidCluster = <span class="keyword">true</span>;
<a name="l00333"></a>00333                                 $k++;
<a name="l00334"></a>00334                                 <span class="keywordflow">break</span>;
<a name="l00335"></a>00335                         }
<a name="l00336"></a>00336                 }
<a name="l00337"></a>00337         }
<a name="l00338"></a>00338         <a class="code" href="start_8php.html#a38a02770385e327c214db25b2576e942" title="Write a row in the log file.">write_log</a>(<span class="stringliteral">&quot;The K value choosen is $k&quot;</span>);
<a name="l00339"></a>00339         <a class="code" href="start_8php.html#a1020a828d0972a4160fc08b3e4449c21" title="Save all clusters and create the relationships between the clusters and the contained entities...">save_clusters</a>($clusters, $relation);
<a name="l00340"></a>00340         
<a name="l00341"></a>00341         <a class="code" href="start_8php.html#a38a02770385e327c214db25b2576e942" title="Write a row in the log file.">write_log</a>(<span class="stringliteral">&quot;End clustering for $relation&quot;</span>);
<a name="l00342"></a>00342 }
<a name="l00343"></a>00343 
<a name="l00351"></a><a class="code" href="start_8php.html#aef09c9045ec39ea9a5f18b5cbe591f0f">00351</a> <span class="keyword">function</span> <a class="code" href="start_8php.html#aef09c9045ec39ea9a5f18b5cbe591f0f" title="Clustering procedure.">clustering</a>($hook, $entity_type, $returnvalue, <a class="code" href="save_8php.html#afe68e6fbe7acfbffc0af0c84a1996466" title="Params list of plugin setting form.">$params</a>) {
<a name="l00352"></a>00352 
<a name="l00353"></a>00353         <a class="code" href="start_8php.html#a38a02770385e327c214db25b2576e942" title="Write a row in the log file.">write_log</a>(<span class="stringliteral">&quot;Createing dictionary&quot;</span>);
<a name="l00354"></a>00354         $synonyms = <a class="code" href="start_8php.html#a8ecd5468592524b985e40212f90033be" title="Create a dictionary of words associated with other words which are related in some way...">get_dictionary</a>(array(<span class="stringliteral">&quot;tags&quot;</span>,<span class="stringliteral">&quot;interests&quot;</span>),<span class="stringliteral">&quot;synonyms&quot;</span>);
<a name="l00355"></a>00355         $hypernyms = <a class="code" href="start_8php.html#a8ecd5468592524b985e40212f90033be" title="Create a dictionary of words associated with other words which are related in some way...">get_dictionary</a>(array(<span class="stringliteral">&quot;tags&quot;</span>,<span class="stringliteral">&quot;interests&quot;</span>),<span class="stringliteral">&quot;hypernyms&quot;</span>);
<a name="l00356"></a>00356         <a class="code" href="start_8php.html#a38a02770385e327c214db25b2576e942" title="Write a row in the log file.">write_log</a>(<span class="stringliteral">&quot;Dictionary created&quot;</span>);
<a name="l00357"></a>00357 
<a name="l00358"></a>00358         <a class="code" href="settings_8php.html#ada8a7130088351710bb02ed622d6bf65" title="Represents this plugin.">$plugin</a> = elgg_get_plugin_from_id(<span class="stringliteral">&#39;mtcd&#39;</span>);
<a name="l00359"></a>00359         <a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a> = <a class="code" href="settings_8php.html#ada8a7130088351710bb02ed622d6bf65" title="Represents this plugin.">$plugin</a>-&gt;getAllSettings();
<a name="l00360"></a>00360 
<a name="l00361"></a>00361         <span class="keywordflow">if</span>(isset(<a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a>[<span class="stringliteral">&#39;recommender_user&#39;</span>] ) &amp;&amp; <a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a>[<span class="stringliteral">&#39;recommender_user&#39;</span>] == <span class="stringliteral">&#39;true&#39;</span>) {
<a name="l00362"></a>00362                 <a class="code" href="start_8php.html#a93b8cbed2051023102fba978a0b21cb4" title="Get and filter data from Elgg database to produce a dataset for the clustering procedure.">generate_dataset</a>($synonyms, $hypernyms, <span class="stringliteral">&quot;user&quot;</span>);
<a name="l00363"></a>00363                 <a class="code" href="start_8php.html#af0a9e4c0b261bdb62061e92d560c6527" title="Iteratively performs the clustering process by changing the K value until the clusters cardinality is...">init_clustering</a>(<span class="stringliteral">&quot;user&quot;</span>);
<a name="l00364"></a>00364         }
<a name="l00365"></a>00365         <span class="keywordflow">if</span>(isset(<a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a>[<span class="stringliteral">&#39;recommender_group&#39;</span>] ) &amp;&amp; <a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a>[<span class="stringliteral">&#39;recommender_group&#39;</span>] == <span class="stringliteral">&#39;true&#39;</span>) {
<a name="l00366"></a>00366                 <a class="code" href="start_8php.html#a93b8cbed2051023102fba978a0b21cb4" title="Get and filter data from Elgg database to produce a dataset for the clustering procedure.">generate_dataset</a>($synonyms, $hypernyms, <span class="stringliteral">&quot;group&quot;</span>);
<a name="l00367"></a>00367                 <a class="code" href="start_8php.html#af0a9e4c0b261bdb62061e92d560c6527" title="Iteratively performs the clustering process by changing the K value until the clusters cardinality is...">init_clustering</a>(<span class="stringliteral">&quot;group&quot;</span>);
<a name="l00368"></a>00368         }
<a name="l00369"></a>00369         <span class="keywordflow">if</span>(isset(<a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a>[<span class="stringliteral">&#39;recommender_blog&#39;</span>] ) &amp;&amp; <a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a>[<span class="stringliteral">&#39;recommender_blog&#39;</span>] == <span class="stringliteral">&#39;true&#39;</span>) {
<a name="l00370"></a>00370                 <a class="code" href="start_8php.html#a93b8cbed2051023102fba978a0b21cb4" title="Get and filter data from Elgg database to produce a dataset for the clustering procedure.">generate_dataset</a>($synonyms, $hypernyms, <span class="stringliteral">&quot;object&quot;</span>, array(<span class="stringliteral">&quot;blog&quot;</span>));
<a name="l00371"></a>00371                 <a class="code" href="start_8php.html#af0a9e4c0b261bdb62061e92d560c6527" title="Iteratively performs the clustering process by changing the K value until the clusters cardinality is...">init_clustering</a>(<span class="stringliteral">&quot;blog&quot;</span>);
<a name="l00372"></a>00372         }
<a name="l00373"></a>00373         <span class="keywordflow">if</span>(isset(<a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a>[<span class="stringliteral">&#39;recommender_file&#39;</span>] ) &amp;&amp; <a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a>[<span class="stringliteral">&#39;recommender_file&#39;</span>] == <span class="stringliteral">&#39;true&#39;</span>) {
<a name="l00374"></a>00374                 <a class="code" href="start_8php.html#a93b8cbed2051023102fba978a0b21cb4" title="Get and filter data from Elgg database to produce a dataset for the clustering procedure.">generate_dataset</a>($synonyms, $hypernyms, <span class="stringliteral">&quot;object&quot;</span>, array(<span class="stringliteral">&quot;file&quot;</span>));
<a name="l00375"></a>00375                 <a class="code" href="start_8php.html#af0a9e4c0b261bdb62061e92d560c6527" title="Iteratively performs the clustering process by changing the K value until the clusters cardinality is...">init_clustering</a>(<span class="stringliteral">&quot;file&quot;</span>);
<a name="l00376"></a>00376         }
<a name="l00377"></a>00377         <span class="keywordflow">if</span>(isset(<a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a>[<span class="stringliteral">&#39;recommender_bookmarks&#39;</span>] ) &amp;&amp; <a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a>[<span class="stringliteral">&#39;recommender_bookmarks&#39;</span>] == <span class="stringliteral">&#39;true&#39;</span>) {
<a name="l00378"></a>00378                 <a class="code" href="start_8php.html#a93b8cbed2051023102fba978a0b21cb4" title="Get and filter data from Elgg database to produce a dataset for the clustering procedure.">generate_dataset</a>($synonyms, $hypernyms, <span class="stringliteral">&quot;object&quot;</span>, array(<span class="stringliteral">&quot;bookmarks&quot;</span>));
<a name="l00379"></a>00379                 <a class="code" href="start_8php.html#af0a9e4c0b261bdb62061e92d560c6527" title="Iteratively performs the clustering process by changing the K value until the clusters cardinality is...">init_clustering</a>(<span class="stringliteral">&quot;bookmarks&quot;</span>);
<a name="l00380"></a>00380         }
<a name="l00381"></a>00381         <span class="keywordflow">if</span>(isset(<a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a>[<span class="stringliteral">&#39;recommender_page&#39;</span>] ) &amp;&amp; <a class="code" href="settings_8php.html#ac7c3353107070daa85f641882931b358" title="List of settings for this plugin.">$settings</a>[<span class="stringliteral">&#39;recommender_page&#39;</span>] == <span class="stringliteral">&#39;true&#39;</span>) {
<a name="l00382"></a>00382                 <a class="code" href="start_8php.html#a93b8cbed2051023102fba978a0b21cb4" title="Get and filter data from Elgg database to produce a dataset for the clustering procedure.">generate_dataset</a>($synonyms, $hypernyms, <span class="stringliteral">&quot;object&quot;</span>, array(<span class="stringliteral">&quot;page&quot;</span>,<span class="stringliteral">&quot;top_page&quot;</span>));
<a name="l00383"></a>00383                 <a class="code" href="start_8php.html#af0a9e4c0b261bdb62061e92d560c6527" title="Iteratively performs the clustering process by changing the K value until the clusters cardinality is...">init_clustering</a>(<span class="stringliteral">&quot;page&quot;</span>);
<a name="l00384"></a>00384         }
<a name="l00385"></a>00385 }
<a name="l00386"></a>00386 
<a name="l00390"></a><a class="code" href="start_8php.html#a7bfc65d6aa3127339eb85ca3d32cc8cf">00390</a> <span class="keyword">function</span> <a class="code" href="start_8php.html#a7bfc65d6aa3127339eb85ca3d32cc8cf" title="Inizialize the plugin.">recommender_init</a>() {
<a name="l00391"></a>00391         elgg_register_widget_type(<span class="stringliteral">&quot;recommender&quot;</span>, <span class="stringliteral">&quot;Recommender System&quot;</span>, <span class="stringliteral">&quot;Knowledge-based recommender system&quot;</span>);
<a name="l00392"></a>00392         elgg_register_css(<span class="stringliteral">&quot;style.css&quot;</span>, $vars[<span class="stringliteral">&quot;url&quot;</span>] . <span class="stringliteral">&quot;mod/mtcd/views/default/widgets/recommender/style.css&quot;</span>);
<a name="l00393"></a>00393         elgg_register_plugin_hook_handler(<span class="stringliteral">&quot;cron&quot;</span>, <span class="stringliteral">&quot;weekly&quot;</span>, <span class="stringliteral">&quot;clustering&quot;</span>);
<a name="l00394"></a>00394 }
<a name="l00395"></a>00395 
<a name="l00399"></a><a class="code" href="start_8php.html#a0dbe133b336a7efc917aef0204753e44">00399</a> <span class="keyword">function</span> <a class="code" href="start_8php.html#a0dbe133b336a7efc917aef0204753e44" title="Remove all clusters and the subtype cluster.">deactivation</a>(){
<a name="l00400"></a>00400         <a class="code" href="start_8php.html#a5067bb4596a4ba71e3b8928ad397da4f" title="Delete all clusters of a given type.">delete_clusters</a>(<span class="stringliteral">&quot;user&quot;</span>);
<a name="l00401"></a>00401         <a class="code" href="start_8php.html#a5067bb4596a4ba71e3b8928ad397da4f" title="Delete all clusters of a given type.">delete_clusters</a>(<span class="stringliteral">&quot;group&quot;</span>);
<a name="l00402"></a>00402         <a class="code" href="start_8php.html#a5067bb4596a4ba71e3b8928ad397da4f" title="Delete all clusters of a given type.">delete_clusters</a>(<span class="stringliteral">&quot;file&quot;</span>);
<a name="l00403"></a>00403         <a class="code" href="start_8php.html#a5067bb4596a4ba71e3b8928ad397da4f" title="Delete all clusters of a given type.">delete_clusters</a>(<span class="stringliteral">&quot;blog&quot;</span>);
<a name="l00404"></a>00404         <a class="code" href="start_8php.html#a5067bb4596a4ba71e3b8928ad397da4f" title="Delete all clusters of a given type.">delete_clusters</a>(<span class="stringliteral">&quot;bookmarks&quot;</span>);
<a name="l00405"></a>00405         <a class="code" href="start_8php.html#a5067bb4596a4ba71e3b8928ad397da4f" title="Delete all clusters of a given type.">delete_clusters</a>(<span class="stringliteral">&quot;page&quot;</span>);
<a name="l00406"></a>00406         remove_subtype(<span class="stringliteral">&quot;object&quot;</span>,<span class="stringliteral">&quot;cluster&quot;</span>);
<a name="l00407"></a>00407 }
<a name="l00408"></a>00408 
<a name="l00409"></a>00409 elgg_register_event_handler(<span class="stringliteral">&quot;init&quot;</span>, <span class="stringliteral">&quot;system&quot;</span>, <span class="stringliteral">&quot;recommender_init&quot;</span>);
<a name="l00410"></a>00410 elgg_register_event_handler(<span class="stringliteral">&quot;deactivate&quot;</span>,<span class="stringliteral">&quot;plugin&quot;</span>,<span class="stringliteral">&quot;deactivation&quot;</span>);
<a name="l00411"></a>00411 elgg_register_action(<span class="stringliteral">&quot;mtcd/settings/save&quot;</span>, $CONFIG-&gt;pluginspath . <span class="stringliteral">&quot;mtcd/actions/save.php&quot;</span>, <span class="stringliteral">&quot;admin&quot;</span>);
<a name="l00412"></a>00412 
<a name="l00413"></a>00413 ?&gt;
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="start_8php.html">start.php</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Mon Feb 13 2012 21:32:27 for MTCDElggPlugin by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5 </li>
   </ul>
 </div>


</body>
</html>
